/*
 * Copyright (C) 2013  Richard Schilling. All rights reserved.
 * contact: coderroadie@gmail.com
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

package android.net.quic.enumerations;

public enum QuicPacketPrivateFlags {
    PACKET_PRIVATE_FLAGS_NONE(0),

    // Bit 0: Does this packet contain an entropy bit?
    PACKET_PRIVATE_FLAGS_ENTROPY(1 << 0),

    // Bit 1: Payload is part of an FEC group?
    PACKET_PRIVATE_FLAGS_FEC_GROUP(1 << 1),

    // Bit 2: Payload is FEC as opposed to frames?
    PACKET_PRIVATE_FLAGS_FEC(1 << 2),

    // All bits set (bits 3-7 are not currently used): 00000111
    PACKET_PRIVATE_FLAGS_MAX((1 << 3) - 1);
    /**
     * The unsigned byte value of the flag.
     */
    public final int flagValue;

    private QuicPacketPrivateFlags(int value) {
        flagValue = value;
    }
}
